var Score=Class.extend({
	x:null,
	y:null,
	elem : null,
	destroy:function(){
		this.elem.remove();
	},
	init: function(x,y){
		this.x=x||0;
		this.y=y||0;
		this.elem=$('<div class="score" readonly/>');
		this.elem.css({
			'text-align': 'center',
			position: 'absolute',
			color : 'black',
			top: '15px',
			left:600/2-65+'px',
			'background-image': 'url(/score.gif)',
			'background-repeat': 'norepeat',
			width: 150+'px',
			height: 50+'px'
		});
		this.upDate();
	},
	upDate: function(){
		this.elem.html('<h3><b>'+this.x+' score '+this.y+'</b></h3>');
	}
});